package com.statistics.yfdata.entity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * @author MeowParse
 * @date 2017/8/31.
 */
@Entity
public class DataEnvironmentalTower {

	private int id;
	private String mac;
	private int offset;
	private BigDecimal pm25;
	private BigDecimal temperature;
	private BigDecimal humidity;
	private BigDecimal co2;
	private BigDecimal noise;
	private BigDecimal weedSpeed;
	private BigDecimal pressure;
	private BigDecimal rainFall;
	private long createTime;

	@Id
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Basic
	@Column(name = "mac")
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Basic
	@Column(name = "offset")
	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	@Basic
	@Column(name = "pm25")
	public BigDecimal getPm25() {
		return pm25;
	}

	public void setPm25(BigDecimal pm25) {
		this.pm25 = pm25;
	}

	@Basic
	@Column(name = "temperature")
	public BigDecimal getTemperature() {
		return temperature;
	}

	public void setTemperature(BigDecimal temperature) {
		this.temperature = temperature;
	}
	@Basic
	@Column(name = "humidity")
	public BigDecimal getHumidity() {
		return humidity;
	}

	public void setHumidity(BigDecimal humidity) {
		this.humidity = humidity;
	}
	@Basic
	@Column(name = "co2")
	public BigDecimal getCo2() {
		return co2;
	}

	public void setCo2(BigDecimal co2) {
		this.co2 = co2;
	}
	@Basic
	@Column(name = "noise")
	public BigDecimal getNoise() {
		return noise;
	}

	public void setNoise(BigDecimal noise) {
		this.noise = noise;
	}

	@Basic
	@Column(name = "weed_speed")
	public BigDecimal getWeedSpeed() {
		return weedSpeed;
	}

	public void setWeedSpeed(BigDecimal weedSpeed) {
		this.weedSpeed = weedSpeed;
	}

	@Basic
	@Column(name = "pressure")
	public BigDecimal getPressure() {
		return pressure;
	}

	public void setPressure(BigDecimal pressure) {
		this.pressure = pressure;
	}

	@Basic
	@Column(name = "rainfall")
	public BigDecimal getRainFall() {
		return rainFall;
	}

	public void setRainFall(BigDecimal rainFall) {
		this.rainFall = rainFall;
	}

	@Basic
	@Column(name = "createTime")
	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

}
